﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace RecruitmentPage.Models.RPModel
{
    public class PersonalInfor
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public Guid UniqueId { get; set; }

        //For employee
        public string Name { get; set; }
        public DateTime Birthday { get; set; }
        public string PlaceofBirth { get; set; }
        /*
         * -1: Other
         * 0: Female
         * 1: Male
         */
        public int Gender { get; set; }
        public string Nationality { get; set; }
        public string CVName { get; set; }
        public byte[] CV { get; set; }
        //For Employer
        public string CompanyName { get; set; }
        public string TaxCode { get; set; }

        // The same for Employer and Employee
        public string Address { get; set; }
        public string HomePhone { get; set; }
        public string OfficePhone { get; set; }
        public string CellPhone { get; set; }
        public string Email { get; set; }
        public string Description { get; set; }




        public ICollection<CareerExpect> CareerExpect { get; set; }

        public ICollection<Education> Education { get; set; }
        public ICollection<WorkExperience> WorkExperience { get; set; }
        public ICollection<Job> Jobs { get; set; }

        public ICollection<ApplyJob> ApplyJob { get; set; }
    }
}